package com.pzc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.io.Serializable;

/**
 * (WarnHistory)实体类
 *
 * @author makejava
 * @since 2023-11-10 17:01:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class WarnHistory implements Serializable {
    private static final long serialVersionUID = 517929515547433211L;

    private Integer sensorId;
    
    private String sensorName;

    //返回前端时,自动将Date转换成指定格式的json字符串
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date happenTime;
    /**
     * 0:H2S浓度超标；1：温度超标
     */
    private String warnType;
    
    private String happenPr;
    /**
     * 图片路径
     */
    private String detail;


}

